package com.qfedu.yanglao20app.companionapp.controller;

import com.qfedu.yanglao20.common.CommonResult;
import com.qfedu.yanglao20.common.annotation.LogInfo;
import com.qfedu.yanglao20.entity.adhibition.Adhibition;
import com.qfedu.yanglao20app.companionapp.service.CompanionAdhibitionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "服务项目管理")
@RestController
@RequestMapping("/app/companionAdhibition")
public class CompanionAdhibitionController {

    @Resource
    private CompanionAdhibitionService companionAdhibitionService;

    /**
     * 查询所有应用服务信息
     *
     * @return 应用服务信息列表
     */
    @LogInfo
    @ApiOperation(value = "应用服务信息列表", notes = "查询所有应用服务信息")
    @GetMapping("/selectAll")
    public CommonResult<List<Adhibition>> selectAll() {
        return CommonResult.success(companionAdhibitionService.selectAll());
    }

}
